const config = require("../../myconfig.js").config;

function rename(newName,authenticationInfo){
  wx.request({
    method:"POST",
    url:config.serverApi+"rename",
    data:{
      "newName":newName,
      "authenticationInfo":authenticationInfo
    },
    success:function(res){
      console.log("修改用户姓名成功",res.data)
    },
    fail:(err)=>{
      console.log("修改用户姓名失败",err)
    }
  })
}
module.exports={
  rename:rename
}